package com.woniu.bh.backstage.client;

import com.woniu.bh.backstage.feign.FeignConfig;
import com.woniu.bh.backstage.param.ConditionedqueryParams;
import com.woniu.bh.backstage.param.FreezeCustomerParam;
import com.woniu.bh.common.core.dto.ResultDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;


/**
 * @Description
 * @InterfaceName CustomerClient
 * @Author Xbao
 * @date 2020.10.19 19:14
 */
@Component
@FeignClient(name = "customer-server",configuration = FeignConfig.class)
public interface CustomerClient {
    @PostMapping("/customer/members/conditionedquery")
    public ResultDto conditionedquery(@RequestBody ConditionedqueryParams conditionedqueryParams);

    @PostMapping("/customer/account/freeze")
    public ResultDto freeze(@RequestBody FreezeCustomerParam freezeCustomerParam);

    @PostMapping("/customer/account/uploadHeadImg")
    public ResultDto uploadHeadImg(@RequestParam("file") MultipartFile file);
}
